package com.euond.accv.mdm.dto;

import java.util.List;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import com.google.common.collect.Lists;

public class MdmStoreGroupDTO {
	
	private Integer id;
	private String storeGroupNo;
	private String storeGroupName;
	private String pStoreGroupNo;
	private List<MdmStoreGroupDTO> children;
	private Integer isLeaf;
	private Integer orderNo;
	private String text;
	private String state;
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public MdmStoreGroupDTO(){}
/*	public MdmTestGroupDTO(Integer id,String storeGroupNo, String pStoreGroupNo,Integer isLeaf,Integer orderNo){
		this.id=id;
		this.storeGroupNo=storeGroupNo;
		this.pStoreGroupNo=pStoreGroupNo;
		this.isLeaf=isLeaf;
		this.orderNo=orderNo;
		
	}*/
	public Integer getIsLeaf() {
		return isLeaf;
	}
	public void setIsLeaf(Integer isLeaf) {
		this.isLeaf = isLeaf;
	}
	public Integer getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getStoreGroupNo() {
		return storeGroupNo;
	}
	public void setStoreGroupNo(String storeGroupNo) {
		this.storeGroupNo = storeGroupNo;
	}
	public String getStoreGroupName() {
		return storeGroupName;
	}
	public void setStoreGroupName(String storeGroupName) {
		this.storeGroupName = storeGroupName;
	}
	public String getpStoreGroupNo() {
		return pStoreGroupNo;
	}
	public void setpStoreGroupNo(String pStoreGroupNo) {
		this.pStoreGroupNo = pStoreGroupNo;
	}
	public List<MdmStoreGroupDTO> getChildren() {
        if (children == null) {
            children = Lists.newArrayList();
        }
		return children;
	}
	public void setChildren(List<MdmStoreGroupDTO> children) {
		this.children = children;
	}
	
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	@Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
